using UnityEngine;

public class RefereeStateJumpBall : State<Referee>
{
	private static RefereeStateJumpBall instance;

	private RefereeStateJumpBall()
	{
	}

	public static RefereeStateJumpBall getInstance()
	{
		if (instance == null)
		{
			instance = new RefereeStateJumpBall();
		}
		return instance;
	}

	public override void enter(Referee owner)
	{
		base.enter(owner);
		owner.setPositon(Global.pos_JumpBall);
		owner.LookAt(-Vector3.right);
		owner.playAnimation(AnimationName.referee_jumpball, 1f, -1f);
	}

	public override void fixedUpdate(Referee owner)
	{
		base.fixedUpdate(owner);
		if (!owner.IsPlayingAnimation())
		{
			owner.do_playing();
		}
	}
}
